<%--
  Created by IntelliJ IDEA.
  User: shenry
  Date: Apr 29, 2008
  Time: 5:42:03 AM
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Login</title>
    </head>
    <body>
        <div class="nav">
        </div>
        <div class="body">
  <h1>Login</h1><br />
 <g:if test="${flash.message}">
     <div class="message">${flash.message}</div>
 </g:if>
 <g:hasErrors bean="${user}">
 <div class="errors">
     <g:renderErrors bean="${user}" as="list" />
 </div>
 </g:hasErrors>

<g:form method="post">
 <table>
     <tr><td>Email</td><td><input type="text" name="email" /></td></tr>
     <tr><td>Password</td><td><input type="password" name="password" /></td></tr>
     <tr><td colspan="2">
            <span class="button"><g:actionSubmit value="Login" action="doLogin" /></span><br/>
     </td></tr>
 </table>

</g:form>
<br />
 <p>If you are a new user, click <g:link action="createNew">here to create a new account</g:link>.
</p>
        </div>
    </body>
</html>